package com.medical.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.medical.mapper.HospinfoMapper;
import com.medical.mapper.HospinfoMapperCustom;
import com.medical.po.DoctortitleCustom;
import com.medical.po.Hospinfo;
import com.medical.po.HospinfoCustom;
import com.medical.po.HosplevelCustom;
import com.medical.service.HospinfoService;

public class HospinfoServiceImpl implements HospinfoService{
	@Autowired
	private HospinfoMapper hospinfoMapper;
	@Autowired
	private HospinfoMapperCustom hospinfoMapperCustom;

	@Override
	public int insertHosp(Hospinfo hospinfo) throws Exception {
		//插入到医院信息表中一条记录
		return hospinfoMapper.insertSelective(hospinfo);
	}

	@Override
	public HospinfoCustom getHospinfo(HospinfoCustom hospinfoCustom) throws Exception {
		return hospinfoMapperCustom.getHospinfo(hospinfoCustom);
	}

	@Override
	public List<HosplevelCustom> InithosplevelList(HosplevelCustom hosplevelCustom) throws Exception {
		// TODO Auto-generated method stub
		return hospinfoMapperCustom.InithosplevelList(hosplevelCustom);
	}

	@Override
	public List<DoctortitleCustom> InitdoctortitleList(DoctortitleCustom DoctortitleCustom) throws Exception {
		// TODO Auto-generated method stub
		return hospinfoMapperCustom.InitdoctortitleList(DoctortitleCustom);
	}
}
